﻿@{
    ViewBag.Title = "Hiệu chỉnh vị trí hộ DC";
    //Layout = "~/Views/Shared/_LayoutBusiness.cshtml";
    Layout = "~/Views/Shared/_LayoutAdmin.cshtml";
}

<script type="text/javascript" src="http://viettelmap.vn/VTMapService/VTMapAPI?api=VTMap&type=main&k=dffc8675fc5d781ea8f0131f7d855565"></script>
<script type='text/javascript' src='~/Scripts/EditMarkers.js'></script>
<script src="~/Scripts/Airview-master/vendor/tooltip.min.js"></script>
<script src="~/Scripts/Airview-master/airview.min.js"></script>
<link href="@Url.Content("~/Content/styleMap_navbar.css")" rel="stylesheet" type="text/css" />

<script>
    @functions{
        public string GetAntiForgeryToken()
        {
            string cookieToken, formToken;
            AntiForgery.GetTokens(null, out cookieToken, out formToken);
            return cookieToken + "," + formToken;
        }
    }
    var strUrlGetAreaCode = '@Url.Action("GetAreaBoundPointByAreaCode", "Area")';
    var strUrlGetAllHouseID = '@Url.Action("GetAllHouseID", "Area")';
    var strUrlEditHDC = '@Url.Action("EditHDC", "Area")';
    var headers = {};
    $(document).ready(function () {

        var serviceUrl = null;
        var strCommuneCode = null;

        serviceUrl = '@ViewBag.ServiceUrl';
        strCommuneCode = '@ViewBag.CommuneCode';
        loadMapToDraw("1", serviceUrl, strCommuneCode, "0");

        window.onload = function () {
            headers['VerificationToken'] = '@GetAntiForgeryToken()';
        }
    });


</script>
<style>

</style>
<div class="full-height-content">
    <div class="full-height-content-body" style="overflow:hidden;">
        <div id='map' class="map_content">
        </div>

        <div class="row" style="max-width: 320px; margin-top: 1%; margin-left: 1%; position: absolute; clear: left; z-index: 1000; ">
            <div class="col-sm-9">
                @Html.DropDownList("selectDiBanDieuTra", ViewData["LIST_AREA"] as List<SelectListItem>, "Chọn địa bàn điều tra", new { @class = "form-control input-sm", style = "width: 200px;" })
            </div>
            <div class="col-sm-2">
                <button id="Luu" title="Lưu tọa độ hộ dân cư vừa chỉnh sửa." style="background-color: #A3DADA; ">
                    <img src="../Images/map/Floppy-Disk-icon.png" width="20">
                </button>
            </div>
        </div>

        <div id="ThongTin" class="modal-dialog" style="display: none; max-width: 320px; margin-top: 7%; margin-left: 1%; position: absolute; clear: left; z-index: 1000; ">
            <div class="modal-content" style="max-width: 320px; ">
                <div class="row" style="border-color: grey; ">
                    <div class="Cell lbl_row" style="margin-left:1%; text-align:center;">
                        <b>Thông tin hộ dân cư</b>
                        <hr style="margin-top:0;">
                    </div>
                    <div class="Cell txt_row" style="margin-left:10%">
                        <ul id="DBDT" style="font-size: 10px;"> </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>